<?php
/*
 * @Author: 李志刚
 * @CopyRight: 2020-2030 衡水山木枝技术服务有限公司
 * @Date: 2021-10-19 10:21:14
 * @Description: 品牌
 * @LastEditors: 李志刚
 * @LastEditTime: 2021-10-19 17:03:21
 * @FilePath: /归档/base/2021_10_19_102114_create_brand.php
 */

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateBrand extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('brands', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->id();
            $table->string('title',100)->comment('品牌名称');
            $table->string('icon',255)->nullable()->comment('图标');
            $table->boolean('status')->default(1)->comment('1 正常，0 禁用');
            $table->tinyInteger('del_flag')->default(0)->comment('删除状态 1删除 0正常');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('brands');
    }
}
